package com.olclass.web.dao;

import com.olclass.web.domain.College;
import com.olclass.web.domain.User2role;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * FileName: RoleRepository.java
 * Author:   Administrator
 * Date:     2021/3/22 19:52
 * Description:
 */
public interface User2roleRepository extends CrudRepository<User2role, String>, JpaSpecificationExecutor<User2role> {

    @Query("select u from User2role u where u.id=?1")
    public User2role findById(String id);
}